#ifndef BMEMALLOCATORSS_H
#define BMEMALLOCATORSS_H

#include <cstddef>

class BMemAllocatorSS
{
private:
    typedef struct obj
    {
        struct obj *next;
    } AllocType;
public:
    void *allocator(size_t size);
    void deallocator(void *ptr);

private:
    static AllocType *headofFreeList;
    static const int chunkSize;
};

BMemAllocatorSS::AllocType* BMemAllocatorSS::headofFreeList = nullptr;
const int BMemAllocatorSS::chunkSize = 20;


#endif // BMEMALLOCATORSS_H
